<?php
$id = $_POST['id'];

$conn = new mysqli("localhost", "root", "", "simple_weibo");
$conn->query("set names 'utf8'");

$sql = "delete from weibo_complaint where weibo_id=".$id;
$res = $conn->query($sql);

$sqlsql = "delete from weibo_list where weibo_id = ".$id;
$resres = $conn->query($sqlsql);
if($res){
    echo "删除成功";
}else {
    echo "删除失败";
}